package rpc

import (
	"leaf/core/rpc"
	"leaf/pb"
	"leaf/server/match/service"
	"reflect"
)

var (
	MatchServiceType = reflect.TypeOf((*service.MatchService)(nil))
)

func InitRpc() {
	rpc.Register("StartMatch", MatchServiceType, &pb.L2M_StartMatch{}, &pb.M2L_StartMatch{}, Rpc_StartMatch)
}
